#!/usr/env/bin node

console.log('\x1b[31m数据类型的转换\x1b[0m');
let 答案 = 42;
答案 = '不客气, 感谢所有的鱼'
console.log(答案);

console.log('\x1b[31m加号运算符\x1b[0m');
let x = '答案是 ' + 42;
let y = 42 + ' 是答案';
let z = '37' + 7;
console.log(x, y, z);

console.log('\x1b[31m其他运算符\x1b[0m');
let a = '37' - 7;
let b = '37' * 7;
console.log(a, b)

console.log('\x1b[31m字符串转为数字\x1b[0m');
console.log(parseInt('101', 2));
console.log(parseFloat('1.25'));